//
//  ChatTableViewCell.h
//  NewChat
//
//  Created by Jingjing Huang on 16/5/17.
//  Copyright © 2016年 宁波伯乐硅谷网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DBMessage+CoreDataClass.h"
#import "MessageLabel.h"
#import "UIButtonWithStringTag.h"
#import <AVFoundation/AVFoundation.h>
#import "ChatTime.h"



@interface ChatTableViewCell : UITableViewCell<AVAudioPlayerDelegate>

@property(strong, nonatomic) id selectVoiceTarget;
@property(assign, nonatomic) SEL selectVoiceAction;
-(void)addSelectVoiceTarget:(id)target action:(SEL)selector;

@property(strong, nonatomic) id selectPhotoTarget;
@property(assign, nonatomic) SEL selectPhotoAction;
-(void)addSelectPhotoTarget:(id)target action:(SEL)selector;

@property(strong, nonatomic) id resendMessageTarget;
@property(assign, nonatomic) SEL resendMessageAction;
-(void)addResendMessageTarget:(id)target action:(SEL)selector;

@property(strong, nonatomic) id goToMapTarget;
@property(assign, nonatomic) SEL goToMapAction;
-(void)addGoToMapTarget:(id)target action:(SEL)selector;

@property(strong, nonatomic) id loginHeadImageViewTarget;
@property(assign, nonatomic) SEL loginHeadImageViewAction;
-(void)addLoginHeadImageViewTarget:(id)target action:(SEL)selector;

@property(strong, nonatomic) id targetHeadImageViewTarget;
@property(assign, nonatomic) SEL targetHeadImageViewAction;
-(void)addTargetHeadImageViewTarget:(id)target action:(SEL)selector;

@property (strong, nonatomic) DBMessage *message;
@property (strong, nonatomic) UIButtonWithStringTag *myPhotoButton;
@property (strong, nonatomic) MessageLabel * messageLable;
@property (strong, nonatomic) UIImageView * bgView;
@property (strong, nonatomic) UILabel *voiceLabel;
@property (strong, nonatomic) UIImageView *voiceImage;
@property (strong, nonatomic) AVAudioPlayer *player;
@property (strong, nonatomic) UIButtonWithStringTag *voiceButton;
@property (strong, nonatomic) UILabel *locationLable;
@property (strong, nonatomic) UIImageView *profileImageView;
@property (strong, nonatomic) ChatTime *timeLabel;
@property (strong, nonatomic) UIActivityIndicatorView *indicator;
@property (strong,nonatomic) UIButton *resendBtn;
@property (strong,nonatomic) UIView *indicatorBGView;
@property (strong,nonatomic) UIButtonWithStringTag *locationImageButton;
@property (strong,nonatomic) UIImageView *daTouZhenImageView;
@property (strong,nonatomic) UILabel *locationAddressLabel;
@property (strong,nonatomic) UIView *locationAddressBGView;
@property (strong,nonatomic) NSNumber *userId;
@property (copy,nonatomic) NSString *sender_head_image_path;
@end
